package cn.tedu.medicalmanagementsystem.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ApiModel("新增预约参数")
public class UserAppointmentAddParam {

    // 用户ID不需要前端传入，后端从登录信息中获取
    @ApiModelProperty(value = "陪诊员ID", required = true)
    @NotNull(message = "陪诊员ID不能为空")
    private Long escortId;

    @ApiModelProperty(value = "服务类型ID", required = true)
    @NotNull(message = "服务类型ID不能为空")
    private Long serviceTypeId;

    @ApiModelProperty(value = "预约时间", required = true)
    @NotNull(message = "预约时间不能为空")
    private LocalDateTime appointmentTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "联系人姓名", required = true)
    @NotNull(message = "联系人姓名不能为空")
    private String contactName;

    @ApiModelProperty(value = "联系人电话", required = true)
    @NotNull(message = "联系人电话不能为空")
    private String contactPhone;

    @ApiModelProperty(value = "总金额", required = true)
    @NotNull(message = "总金额不能为空")
    private Double totalAmount;

    // userId 不再由前端传递，而是通过登录会话或 token 获取
}
